package com.ideaction.entity.activity;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

@Data
@Document
public class MissionBean {
    
    @JsonProperty("MissionSid")
    private int missionSid;//
    
    @JsonProperty("RewardCount")
    private int rewardCount;//已经领取次数
    
    private long rewardTime;//领取时间
    
    public MissionBean(int missionSid) {
        this.missionSid = missionSid;
    }
    
    public void addRewardCount() {
        rewardCount++;
        rewardTime = System.currentTimeMillis();
    }
}
